Automated Unit Testing with ABAP by James E. McDonough
Author:James E. McDonough
Language: eng
Format: epub
ISBN: 9781484269510
Publisher: Apress
form get_sale_items changing sale_items type item_table.
o
o
endform.
form produce_sales_item_report using sale_items.
o
o
endform.
class sales_tax_calculator_tester definition for testing.
private section.
methods calculate_sales_tax_tester for testing.
methods get_sale_items changing sale_items type item_table.
endclass.
class sales_tax_calculator_tester implementation.
method calculate_sales_tax_tester.
data sale_items type item_table.
data sales_tax_calculator type ref to sales_tax_calculator.
data sales_tax_rate_resolver type ref
to sales_tax_rate_resolver_tstdbl.
field-symbols <sale_item> type item_row.
call method me->get_sale_items changing sale_items.
create object sales_tax_rate_resolver.
create object sales_tax_calculator.
call method sales_tax_calculator-> calculate_sales_tax
exporting
tax_rate_resolver = sales_tax_rate_resolver
changing
sale_items = sale_items.
loop at sale_items assigning <sale_item>.
cl_abap_unit_assert=>assert_equals(
act = <sale_item>-sales_tax
exp = <sale_item>-sale_price
* sales_tax_rate_resolver_tstdbl=>constant_sales_tax_rate
).
endloop.
endmethod.
method get_sale_items.
o
o
endmethod.
endclass.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Test-Driven Development with Java by Alan Mellor(6773)
Data Augmentation with Python by Duc Haba(6688)
Principles of Data Fabric by Sonia Mezzetta(6435)
Learn Blender Simulations the Right Way by Stephen Pearson(6335)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6209)
Hadoop in Practice by Alex Holmes(5965)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5813)
RPA Solution Architect's Handbook by Sachin Sahgal(5605)
Big Data Analysis with Python by Ivan Marin(5387)
The Infinite Retina by Robert Scoble Irena Cronin(5298)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5154)
Pretrain Vision and Large Language Models in Python by Emily Webber(4352)
Infrastructure as Code for Beginners by Russ McKendrick(4116)
Functional Programming in JavaScript by Mantyla Dan(4042)
The Age of Surveillance Capitalism by Shoshana Zuboff(3961)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3832)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3632)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3605)
